package com.cm.caseManagement.pojo.entity;

import com.cm.caseManagement.annotation.Excel;
import com.cm.caseManagement.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 案件审核记录对象 cm_case_audit_record
 *
 * @author ruoyi
 * @date 2025-10-05
 */
public class CmCaseAuditRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 审核记录id */
    private Long id;

    /** 外部唯一id */
    @Excel(name = "外部唯一id")
    private String publicId;

    /** 提交人id */
    @Excel(name = "提交人id")
    private Long submitterId;

    /** 案件id */
    @Excel(name = "案件id")
    private Long caseId;

    /** 审核人id */
    @Excel(name = "审核人id")
    private Long auditorId;

    /** 审核状态：0待审核、1未通过、2已通过 */
    @Excel(name = "审核状态：0待审核、1未通过、2已通过")
    private Long auditState;

    /** 审核理由 */
    @Excel(name = "审核理由")
    private String applyAmount;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date auditTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setPublicId(String publicId)
    {
        this.publicId = publicId;
    }

    public String getPublicId()
    {
        return publicId;
    }

    public void setSubmitterId(Long submitterId)
    {
        this.submitterId = submitterId;
    }

    public Long getSubmitterId()
    {
        return submitterId;
    }

    public void setCaseId(Long caseId)
    {
        this.caseId = caseId;
    }

    public Long getCaseId()
    {
        return caseId;
    }

    public void setAuditorId(Long auditorId)
    {
        this.auditorId = auditorId;
    }

    public Long getAuditorId()
    {
        return auditorId;
    }

    public void setAuditState(Long auditState)
    {
        this.auditState = auditState;
    }

    public Long getAuditState()
    {
        return auditState;
    }

    public void setApplyAmount(String applyAmount)
    {
        this.applyAmount = applyAmount;
    }

    public String getApplyAmount()
    {
        return applyAmount;
    }

    public void setAuditTime(Date auditTime)
    {
        this.auditTime = auditTime;
    }

    public Date getAuditTime()
    {
        return auditTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("publicId", getPublicId())
            .append("submitterId", getSubmitterId())
            .append("caseId", getCaseId())
            .append("auditorId", getAuditorId())
            .append("auditState", getAuditState())
            .append("applyAmount", getApplyAmount())
            .append("auditTime", getAuditTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
